package com.yu.footballpromotionliveadmin.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 活动类型表
 */
public class ActivityType implements Serializable {
    private String actno;

    private String actname;

    private String actdesc;

    private Date actbegindate;

    private Date actenddate;

    private static final long serialVersionUID = 1L;

    public String getActno() {
        return actno;
    }

    public void setActno(String actno) {
        this.actno = actno;
    }

    public String getActname() {
        return actname;
    }

    public void setActname(String actname) {
        this.actname = actname;
    }

    public String getActdesc() {
        return actdesc;
    }

    public void setActdesc(String actdesc) {
        this.actdesc = actdesc;
    }

    public Date getActbegindate() {
        return actbegindate;
    }

    public void setActbegindate(Date actbegindate) {
        this.actbegindate = actbegindate;
    }

    public Date getActenddate() {
        return actenddate;
    }

    public void setActenddate(Date actenddate) {
        this.actenddate = actenddate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActivityType other = (ActivityType) that;
        return (this.getActno() == null ? other.getActno() == null : this.getActno().equals(other.getActno()))
            && (this.getActname() == null ? other.getActname() == null : this.getActname().equals(other.getActname()))
            && (this.getActdesc() == null ? other.getActdesc() == null : this.getActdesc().equals(other.getActdesc()))
            && (this.getActbegindate() == null ? other.getActbegindate() == null : this.getActbegindate().equals(other.getActbegindate()))
            && (this.getActenddate() == null ? other.getActenddate() == null : this.getActenddate().equals(other.getActenddate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getActno() == null) ? 0 : getActno().hashCode());
        result = prime * result + ((getActname() == null) ? 0 : getActname().hashCode());
        result = prime * result + ((getActdesc() == null) ? 0 : getActdesc().hashCode());
        result = prime * result + ((getActbegindate() == null) ? 0 : getActbegindate().hashCode());
        result = prime * result + ((getActenddate() == null) ? 0 : getActenddate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", actno=").append(actno);
        sb.append(", actname=").append(actname);
        sb.append(", actdesc=").append(actdesc);
        sb.append(", actbegindate=").append(actbegindate);
        sb.append(", actenddate=").append(actenddate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}